﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Text;
using System.Net;
using System.Web;


public partial class PaypalTest : System.Web.UI.Page
{

    protected string cmd = "_xclick";
    protected string business = "mymail@mail.com";
    protected string item_name = "Payment for goods";
    protected string amount;
    protected string return_url = "http://localhost:12856/Coupons/TestValidation.aspx";
    //string notify_url = AppSettings("NotifyUrl");
    protected string cancel_url = "http://localhost:12856/Coupons/TestValidation.aspx";
    protected string currency_code = "USD";
    protected string no_shipping = "1";
    protected string URL;
    protected string request_id;
    protected string rm;
    protected string SandBox = "true";
    protected string SendToReturnURL = "false";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SandBox == "true")
            URL = "https://www.sandbox.paypal.com/cgi-bin/webscr";
        else
            URL = "https://www.paypal.com/cgi-bin/webscr";

        if (SendToReturnURL == "true")
            rm = "2";
        else
            rm = "1";

        amount = "10";
       
    }

  
}
